import org.junit.jupiter.api.Assertions;

import static org.junit.Assert.assertEquals;

public class NGuessNumberTest {
    private static NGuessNumber nGuessNumber = new NGuessNumber();

    @org.junit.jupiter.api.BeforeEach
    void setUp() {
        System.out.println("测试开始");
    }

    @org.junit.jupiter.api.AfterEach
    void tearDown() {
        System.out.println("测试结束");
    }

    @org.junit.jupiter.api.Test
    void generateAnswer() {
        assertEquals(4, nGuessNumber.generateAnswer().size());
    }

    @org.junit.jupiter.api.Test
    void getPlayerInputTest () {
        Assertions.assertEquals(4, nGuessNumber.getPlayerInput().length);
    }

    @org.junit.jupiter.api.Test
    void compareGuessAnswer() {
        Assertions.assertEquals(true, nGuessNumber.compareGuessAnswer());
    }
}
